package com.sys.db.managerImpl;

import java.util.List;

import com.sys.db.dao.UserInfoDao;
import com.sys.db.manager.UserInfoManager;
import com.sys.pojo.UserInfo;

public class UserInfoManagerImpl implements UserInfoManager {
	private UserInfoDao userInfoDao;
	public void delete(String userName) throws Exception {
		userInfoDao.delete(userName);
	}

	public List findAll() throws Exception {
		List list = userInfoDao.findAll();
		return list;
	}

	public UserInfo findByUserName(String userName) throws Exception {
		UserInfo info=userInfoDao.findByUserName(userName);
		return info;
	}

	public void save(UserInfo userInfo) throws Exception {
		// TODO Auto-generated method stub
		
	}

	public void update(UserInfo userInfo) throws Exception {
		// TODO Auto-generated method stub
		
	}

	public UserInfoDao getUserInfoDao() {
		return userInfoDao;
	}

	public void setUserInfoDao(UserInfoDao userInfoDao) {
		this.userInfoDao = userInfoDao;
	}
	
}
